=get_options ("SELECT Cats3.CatId, Cats.Cat, Cats1.Cat, Cats2.Cat, Cats3.Cat FROM (((Cats As Cats3 left JOIN Cats As Cats2 ON Cats3.ParentId = Cats2.CatId) left JOIN Cats As Cats1 ON Cats2.ParentId = Cats1.CatId) LEFT JOIN Cats As Cats ON Cats1.ParentId = Cats.CatId) WHERE Cats.ParentId is NULL order by (Cats.Cat & Cats1.Cat & Cats2.Cat & Cats3.Cat)", CatID)
%>
</select>
</td>
<td class='labelTD'>select the best category for this resource</td>
<td class='labelTD'># of times the related URL has been visited</td>
</tr>
<tr>
<td class='labelTD'>Your Rating</td>
<td class='dataTD' >
<% if isnull(AvgRating) then AvgRating = "" %>
<select name="AvgRating" >
<option <% if "1" = cStr(AvgRating) then %>selected<% end if %>>1</option>
<option <% if "2" = cStr(AvgRating) then %>selected<% end if %>>2</option>
<option <% if "3" = cStr(AvgRating) then %>selected<% end if %>>3</option>
<option <% if "4" = cStr(AvgRating) then %>selected<% end if %>>4</option>
<option <% if "5" = cStr(AvgRating) then %>selected<% end if %>>5</option>
<option <% if "6" = cStr(AvgRating) then %>selected<% end if %>>6</option>
<option <% if "7" = cStr(AvgRating) then %>selected<% end if %>>7</option>
<option <% if "8" = cStr(AvgRating) then %>selected<% end if %>>8</option>
<option <% if "9" = cStr(AvgRating) then %>selected<% end if %>>9</option>
<option <% if "10" = cStr(AvgRating) then %>selected<% end if %>>10</option>
</select>
</td>
<td class='labelTD'>Select your 1(low) to 10(high) rating for this link.</td>
</tr>
<tr>
<td class='labelTD'>Display</td>
<td class='dataTD' >
<% if Display = "" then Display = false %>
<input type=checkbox <% if Display then %>checked<% end if %> name="Display" value="1">
</td>
<td class='labelTD'>check box to approve this link for display</td>
</tr>
<tr>
<td class=labelTD align=right>
<% if LinkID <> "" then %><input type=button name=new_button value='NEW LINK' onclick="window.location = '<% =request.servervariables("script_name") %>'"><% end if %>
</td>
<td class=dataTD>
<% if LinkID = "" then %><input type=submit name=insert_button value='ADD LINK'><% end if %>
<% if LinkID <> "" then %><input type=submit name=update_button value='UPDATE'><% end if %>
<% if LinkID <> "" then %><input type=submit name=delete_button value='DELETE' onclick="document.edit_Links.action.value = 'delete_edit_Links'"><% end if %>
</td>
<td class=labelTD>
</td>
<input type=hidden name="action" value="<% if LinkID <> "" then %>update<% else %>insert<%end if %>_edit_Links"></tr>